package com.zhouxl.jackson.xml.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import lombok.Data;

/**
 * @author zhouxl
 * @DATE 2021/8/26
 * @descriptoin
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)   //忽略掉xml里不关注的element
public class Remote {

    @JacksonXmlProperty(isAttribute = true)   //name是project的attribute属性，不是value
    private String name;

    @JacksonXmlProperty(isAttribute = true)   //name是project的attribute属性，不是value
    private String url;

}
